<template>
	<div class="bg-white">
		<Form :label-width="80">
			<Row>
				<Col :xs="24" :sm="24" :md="12" :lg="6" :xl="4" :xxl="4">
					<FormItem class="w-100" label="门店名">
						<Input v-model="store.sname" ></Input>
					</FormItem>
					
					<FormItem class="w-100">
					<div class="w-100 d-flex justify-content-between align-items-center ">
						<Button class="m-1" type="primary" shape="circle" @click="save" >保存</Button>
					</div>
					</FormItem>
				</Col>
			</Row>
		</Form>


	</div>
</template>

<script>
	export default {
		data() {
			return {
				store: {
					sname: "",
					stu: "U",
					flg: false,
				},
			}
		},
		created: function() {
			
		},
		mounted: function() {},
		methods: {
			save: function() {
				this.http.post({
					url: "/store/new",
					data: this.store
				}).then(data => {
					this.message.info("新增成功");
					this.$tabs.close();
				});
			}
			
		},
	}
</script>

<style>
</style>